﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>经纪人</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/s_base.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/s_style.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/s_valide.css"/>
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/public/webapp/css/swiper.min.css" />
		<!--<script src="js/vwp.js" type="text/javascript" charset="utf-8"></script>-->
		<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
		<script>
            wx.config({
                debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
                appId: 'wx7440c4b3bc2b9002', // 必填，公众号的唯一标识
                timestamp: '<?php echo $time ?>',
                nonceStr:  '<?php echo $noncestr ?>',
                signature: '<?php echo $signature ?>',
                jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
            });
            wx.ready(function(){
                // config信息验证后会执行ready方法，所有接口调用都必须在config接口获得结果之后，config是一个客户端的异步操作，所以如果需要在页面加载时就调用相关接口，则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口，则可以直接调用，不需要放在ready函数中。
                //分享到朋友圈
                wx.onMenuShareTimeline({
                    title: '小鸟找房', // 分享标题
                    link: '<?php echo $url ?>', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
                    imgUrl: 'http://www.caizhanzhushou.com/data/upload/default/20170815/5992871c9dc5a.jpg', // 分享图标
                    success: function () {
                        // 用户确认分享后执行的回调函数
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });
                //分享给朋友
                wx.onMenuShareAppMessage({
                    title:'小鸟找房', // 分享标题
                    desc: '小鸟找房经纪人！',// 分享描述
                    link: '<?php echo $url ?>', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
                    imgUrl: 'http://www.caizhanzhushou.com/data/upload/default/20170815/5992871c9dc5a.jpg', // 分享图标
                    type: '', // 分享类型,music、video或link，不填默认为link
                    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                    success: function () {
                        // 用户确认分享后执行的回调函数
                    },
                    cancel: function () {
                        // 用户取消分享后执行的回调函数
                    }
                });
            });
            wx.error(function(res){
                // config信息验证失败会执行error函数，如签名过期导致验证s失败，具体错误信息可以打开config的debug模式查看，也可以在返回的res参数中查看，对于SPA可以在这里更新签名。
            });
            
		</script>
		<script type="text/javascript">
           /* document.execCommand("Stop");
            if (window.stop)
            window.stop();*/
       var tmies=function(timestamp) {
                var nowTime = new Date();
                var endTime = new Date(timestamp * 1000);
            
//                var t = endTime.getTime() - (nowTime.getTime()-(3600*24*15*1000));
                var t = nowTime.getTime()-endTime.getTime();
//                var d=Math.ceil(t/1000/60/60/24);
                var d=Math.floor(t/(1000 * 60 * 60 * 24))+1;
                var hour = Math.floor(t / 1000 / 60 / 60 % 24);
                var min = Math.floor(t / 1000 / 60 % 60);
                var sec = Math.floor(t / 1000 % 60);

                if (hour < 10) {
                    hour = "0" + hour;
                }
                if (min < 10) {
                    min = "0" + min;
                }
                if (sec < 10) {
                    sec = "0" + sec;
                }
                var countDownTime =d>0?d:2;
               return countDownTime;
       }
            setTimeout(function(){
//            $("body").show();
                document.querySelectorAll("body")[0].style.cssText="";
            },tmies(1508143901482)*1000);
         </script>
	</head>
<style>
    .second_right span{
        margin: 0;
        margin-right: 13px;
    }
    .nav_row1,.nav_row2{
    	white-space: nowrap; 
    }
    
</style>
	<body style="display: none;">
		<a href="{:U('Wechat/Webmine/index')}"  class="person_center"><img src="__ROOT__/public/webapp/img/673393940948310894.png"/></a>
		<!--轮播图-->
		<div class="swiper-container">
			<div class="swiper-wrapper">
				<volist name="lun" id="vii">
				<div class="swiper-slide">
					<php>$ur = $_SERVER[HTTP_HOST];</php>
					<a href="{$vii.slide_url}">
						<img src="http://<?php echo $ur ?>/data/upload/{$vii.slide_pic}" />
					</a>
				</div>
				</volist>
			</div>
			<div class="swiper-pagination"></div>
		</div>
		<!--导航栏-->
		<div class="nav">
			<div class="nav_row1">
				<a href="{:U('Wechat/Webzhuan/zulin')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组42@2x.png" />
					<p>租赁转介</p>
				</a>
				<a href="{:U('Wechat/Webzhuan/ershou')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组43@2x.png" />
					<p>二手房转介</p>
				</a>
				<a href="{:U('Wechat/Webzhuan/xinfang')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组44@2x.png" />
					<p>新房转介</p>
				</a>
				<a href="{:U('Wechat/Webzhuan/qita')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组45@2x.png" />
					<p>转介商城</p>
				</a>
			</div>
			<div class="nav_row2">
				<a href="{:U('Wechat/Webzhuan/xiangmu')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组46@2x.png" />
					<p>团队&项目</p>
				</a>
				<a href="{:U('Wechat/Mine/guodu')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组47@2x.png" />
					<p>分享名片</p>
				</a>
				<a href="{:U('Wechat/Webzhuan/zhaojiang')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组48@2x.png" />
					<p>单位招聘</p>
				</a>
				<a href="{:U('Wechat/Club/index')}" class="nav_cell">
					<img src="__ROOT__/public/webapp/img/组49@2x.png" />
					<p>俱乐部</p>
				</a>
			</div>
		</div>
		<div class="body_son">
			<!--最新转介-->
			<div class="content">
				<!--标题栏-->
				<div class="fist clearfix">
					<div class="left">
						<div class="new_wrap">
							<p class="new_info">最新转介</p>
							<i class="iconfont  icon-NEW"></i>
						</div>
						<p class="firstrow_title current">求租</p>
						<p class="firstrow_title">求买</p>
					</div>
					<div class="right more">
						<a href="{:U('Wechat/Webzhuan/zulin')}#qiuzu" class="more" id="more1">更多</a>
						<i class="iconfont icon-jiantou-copy"></i>
					</div>
				</div>
				<!--列表-->
				<!--求租-->
				<div class="rent_content">
				<!--	<div class="house_cell">
						<div class="cell_main clearfix">
							<a class="left avatar_wrap" href="index.html">
								<img src="__ROOT__/public/webapp/img/house.png" class="avatar" />
								<p>昵称昵称1</p>
							</a>
							<a class="right right_info" href="index.html">
								<div class="right_top">
									<span>08-01</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<p>
										区域:
										<span>雁塔区</span>
									</p>
									<p class="spacing">
										户型:
										<span>三室一厅</span>
									</p>
								</div>
								<div class="right_bot">
									<p>
										面积:
										<span>150~190</span>
									</p>
									<p class="spacing">
										月租:
										<span>1500~2000</span>
									</p>
								</div>
							</a>
						</div>
						<div class="cell_bot">
							转介信息在10天后自动失效
						</div>
					</div>
					<div class="house_cell">
						<div class="cell_main clearfix">
							<a class="left avatar_wrap" href="index.html">
								<img src="__ROOT__/public/webapp/img/house.png" class="avatar" />
								<p>昵称昵称1</p>
							</a>
							<a class="right right_info" href="index.html">
								<div class="right_top">
									<span>08-01</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<p>
										区域:
										<span>雁塔区</span>
									</p>
									<p class="spacing">
										装修:
										<span>豪华</span>
									</p>
								</div>
								<div class="right_bot">
									<p>
										面积:
										<span>50~90</span>
									</p>
									<p class="spacing">
										月租:
										<span>1500~2000</span>
									</p>
								</div>
							</a>
						</div>
						<div class="cell_bot">
							转介信息在10天后自动失效
						</div>
					</div>
					<div class="house_cell">
						<div class="cell_main clearfix">
							<a class="left avatar_wrap" href="index.html">
								<img src="__ROOT__/public/webapp/img/house.png" class="avatar" />
								<p>昵称昵称1</p>
							</a>
							<a class="right right_info" href="index.html">
								<div class="right_top">
									<span>08-01</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<p>
										区域:
										<span>雁塔区</span>
									</p>
								</div>
								<div class="right_bot">
									<p class="spacing">
										月租:
										<span>1500~2000</span>
									</p>
								</div>
							</a>
						</div>
						<div class="cell_bot">
							转介信息在10天后自动失效
						</div>
					</div>
-->
				</div>
				<!--求买-->
			<!--	<div class="buy_content">
					<div class="house_cell">
						<div class="cell_main clearfix">
							<a class="left avatar_wrap" href="index.html">
								<img src="__ROOT__/public/webapp/img/house.png" class="avatar" />
								<p>昵称昵称2</p>
							</a>
							<a class="right right_info" href="index.html">
								<div class="right_top">
									<span>08-01</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<p>
										区域:
										<span>雁塔区</span>
									</p>
									<p class="spacing">
										户型:
										<span>三室一厅</span>
									</p>
								</div>
								<div class="right_bot">
									<p>
										面积:
										<span>150~190</span>
									</p>
									<p class="spacing">
										月租:
										<span>1500~2000</span>
									</p>
								</div>
							</a>
						</div>
						<div class="cell_bot">
							转介信息在10天后自动失效
						</div>
					</div>
				</div>-->

			</div>

			<!--最新转介-->
			<div class="content">
				<!--标题栏-->
				<div class="fist clearfix">
					<div class="left">
						<div class="new_wrap">
							<p class="new_info">最新转介</p>
							<i class="iconfont  icon-NEW"></i>
						</div>
						<p class="secrow_title current">出租</p>
						<p class="secrow_title">二手房出售</p>
						<p class="secrow_title">新房</p>
					</div>
					<div class="right more">
						<span><a href="{:U('Wechat/Webzhuan/zulin')}#chuzu" class="more" id="more2">更多</a></span>
						<i class="iconfont icon-jiantou-copy"></i>
					</div>
				</div>
				<!--列表-->
				<!--出租-->
				<div class="sec_rent_content">
					<!--<div class="house_cell">
						<div class="cell_main clearfix cell1">
							<a href="index.html"><img src="__ROOT__/public/webapp/img/house.png" class="house_img" /></a>
							<div class="right second_right">
								<div class="right_top">
									<span>08-01</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<span>雁塔区</span>
									<span class="mid_text">三室一厅</span>
									<span>华成国际</span>
								</div>
								<div class="right_bot">
									<span>90m²</span>
									<span class="mid_text">2000元/月</span>
									<span>7年以下</span>
								</div>
							</div>
						</div>
						<div class="cell_bot1">
							<p>转介信息在10天后自动失效</p>
						</div>
					</div>-->
				</div>
				<!--二手房出售-->
<!--
				<div class="sec_huose_contetent">
					<div class="house_cell">
						<div class="cell_main clearfix cell1">
							<a href="index.html"><img src="__ROOT__/public/webapp/img/house.png" class="house_img" /></a>
							<div class="right second_right">
								<div class="right_top">
									<span>08-02</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<span>雁塔区</span>
									<span class="mid_text">三室一厅</span>
									<span>华成国际</span>
								</div>
								<div class="right_bot">
									<span>90m²</span>
									<span class="mid_text">2000元/月</span>
									<span>7年以下</span>
								</div>
							</div>
						</div>
						<div class="cell_bot1">
							<p>转介信息在10天后自动失效</p>
						</div>
					</div>
				</div>
-->

				<!--新房-->
<!--
				<div class="sec_new_content">
					<div class="house_cell">
						<div class="cell_main clearfix cell1">
							<a href="index.html"><img src="__ROOT__/public/webapp/img/house.png" class="house_img" /></a>
							<div class="right second_right">
								<div class="right_top">
									<span>08-03</span>
									<span class="time">10:00</span>
									<span class="right">
								<i class="iconfont icon-liulan"></i>
								<span>16次</span>
									</span>
								</div>
								<div class="right_mid">
									<span>雁塔区</span>
									<span class="mid_text">三室一厅</span>
									<span>华成国际</span>
								</div>
								<div class="right_bot">
									<span>90m²</span>
									<span class="mid_text">2000元/月</span>
									<span>7年以下</span>
								</div>
							</div>
						</div>
						<div class="cell_bot1">
							<p>转介信息在10天后自动失效</p>
						</div>
					</div>
				</div>
-->

			</div>
			<!--轻松一刻-->
			<div class="content">
				<!--标题栏-->
				<div class="fist clearfix">
					<div class="left">
						<i class="iconfont icon-kaixinwang"></i>
						<span class="new_info">轻松一刻</span>
					</div>
					<a href="{:U('Wechat/Club/index')}" class="right more">
						<span>更多</span>
						<i class="iconfont icon-jiantou-copy"></i>
					</a>
				</div>
				<!--列表-->
				<volist name="julebu" id="v">
					<if condition="$v['url'] eq NULL">
					<a href="{:U('Wechat/Club/content',['id'=>$v['id']])}">
						<div class="third_cell">
							<div class=" clearfix ">
								<img src="{$v.thumb}" class="happy_img" />
								<div class="right third_right">
										<span style="font-size: 16px;">{$v.name}</span>
								</div>
							</div>
						</div>
					</a>
						<else/>
						<a href="{$v.url}">
							<div class="third_cell">
								<div class=" clearfix ">
									<img src="{$v.thumb}" class="happy_img" />
									<div class="right third_right">
										<span style="font-size: 16px;">{$v.name}</span>
									</div>
								</div>
							</div>
						</a>
					</if>
				</volist>
			</div>
		</div>
		
<script type="text/html" id="mob1">
     {{ if(!!data){ }}
     {{ for(var i=0;i<(data.length>3?3:data.length);i++){ }}
      <div class="house_cell">
       {{ var list=data[i]; }}
        <div class="cell_main clearfix">
            <a class="left avatar_wrap" href="/index.php?g=Wechat&m=webta&a=index&openid={{=list.openid}}">
                <img src="{{=list.headimg}}" class="avatar">
                <p>{{=list.name}}</p>
            </a>
            <a class="right right_info" href="/index.php?g=Wechat&m=webcont&a={{=root}}&id={{=list.id}}">
                <div class="right_top">
                    <span>{{=new Date(list.time*1000).Format("MM-dd hh:mm:ss")}}</span>
<!--                    <span class="time">10:00</span>-->
                    <span class="right">
                <i class="iconfont icon-liulan"></i>
                <span>{{=list.read}}次</span>
                    </span>
                </div>
                <div class="right_mid">
                        {{ if(list.quyu!='null'&&typeof list.quyu !='object'){ }}
                    <p>
                        区域:
                        <span>{{=list.quyu}}</span>
                    </p>
                        {{ } }}
                         {{ if(list.type==1){ }}
                        {{ if(list.huxing!='null'&&typeof list.huxing !='object'){ }}
                    <p class="spacing"> 
                        户型:
                        <span>{{=list.huxing}}</span>
                    </p>
                        {{ } }}
                        {{ }else if(list.type==2||list.type==3){ }}
                        {{ if(list.zhuangxiu!='null'&&typeof list.zhuangxiu !='object'){ }}
                    <p class="spacing"> 
                        装修:
                        <span>{{=list.zhuangxiu}}</span>
                    </p>
                        {{ } }}
                        {{ } }}
                        
                </div>
                <div class="right_bot">
                       {{ if(list.type!=4){ }}
                        {{ if(list.mianji!='null'&&typeof list.mianji !='object'){ }}
                    <p>
                        面积:
                        <span>{{=list.mianji||"不限"}}</span>
                    </p>
                        {{ } }}
                        {{ } }}
                        
                        {{ if(list.yuezu){ }}
                        {{ if(list.yuezu!='null'&&typeof list.yuezu !='object'){ }}
                    <p class="spacing">
                        月租:
                        <span>{{=list.yuezu}}</span>
                    </p>
                        {{ } }}
                        {{ } }}
                        
                        {{ if(list.jiage){ }}
                        {{ if(list.jiage!='null'&&typeof list.jiage !='object'){ }}
                    <p class="spacing">
                        价格:
                        <span>{{=list.jiage}}</span>
                    </p>
                        {{ } }}
                        {{ } }}
                        
                </div>
            </a>
        </div>
         {{ if(list.data!="xinfang"){ }}
        <div class="cell_bot" {{ if(getCountDown(list.time)=="已失效"){ }} style="color:#666; {{ } }}">
            {{=getCountDown(list.time)}}
        </div>
        {{ } }}
    </div>
     {{ } }}
     {{ } }}
    </script>    
<script type="text/html" id="mob2">    
     {{ if(!!data){ }}
     {{ for(var i=0;i<(data.length>3?3:data.length);i++){ }} 
        {{ var list=data[i]; }}
                <div class="house_cell">
                    <div class="cell_main clearfix cell1">
                        <a href="javascript:void(0);" class="clickimg"><img src="{{=imgzy(list.thumb) }}" class="house_img" /></a>
                        <a href="/index.php?g=Wechat&m=webcont&a={{=root}}&id={{=list.id}}">
                        <!--<span>{{=list.type}}</span>-->
                        <div class="right second_right">
                            <div class="right_top">
                                <span>{{=new Date(list.time*1000).Format("MM-dd hh:mm:ss")}}</span>
<!--									<span class="time">10:00</span>-->
                                <span class="right">
                            <i class="iconfont icon-liulan"></i>
                            {{ if(list.read!='null'&&typeof list.read !='object'){ }}
                            <span>{{=list.read}}次</span>
                            {{ } }}
                                </span>
                            </div>
                            <div class="right_mid">
                               {{ if(list.quyu!='null'&&typeof list.quyu !='object'){ }}
                                <span>{{=list.quyu}}</span>
                                {{ } }}
                                {{ if(list.type==1){ }}
                                {{ if(list.huxing!='null'&&typeof list.huxing !='object'){ }}
                                <span class="mid_text">{{=list.huxing}}</span>
                                {{ } }}   
                                {{ } }}   
                                {{ if(list.type==2||list.type==3){ }}
                                {{ if(list.buildname!='null'&&typeof list.buildname !='object'){ }}
                                <span>{{=list.buildname}}</span>
                                {{ } }}
                                {{ } }}
                                {{ if(list.data=="xinfang"){ }}
                                {{ if(list.buildname!='null'&&typeof list.buildname !='object'){ }}
                                <span>{{=list.buildname}}</span>
                                {{ } }}
                                {{ } }}
                                
                            </div>
                            <div class="right_bot">
                                {{ if(list.data!="xinfang"){ }}
                                {{ if(list.type!=4){ }}
                                {{ if(list.mianji!='null'&&typeof list.mianji !='object'){ }}
                                <span>{{=list.mianji}}m²</span>
                                {{ } }}
                                {{ } }}
                                {{ } }}
                                <span class="mid_text">{{=list.yuezu||list.jiage}}</span>
                                {{ if(list.data=="xinfang"){ }}
                                <span class="mid_text">{{=list.yongjin}}</span>
                                {{ } }}
<!--
                                {{ if(list.fangling!='null'&&typeof list.fangling !='object'){ }}
                                <span>{{=list.fangling}}</span>
                                {{ } }}
-->
                                
                            </div>
                        </div>
                        </a>
                    </div>
                     {{ if(list.data!="xinfang"){ }}
                <div class="cell_bot1" {{ if(getCountDown(list.time)=="已失效"){ }} style="color:#666; {{ } }}">
                    {{=getCountDown(list.time)}}
                </div>
                {{ } }}
                </div>
     {{ } }}
     {{ } }}
    </script>
	</body>
	<script src="__ROOT__/public/webapp/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	
<script src="__ROOT__/public/webapp/js/template.js" type="text/javascript" charset="utf-8"></script>
	<script src="__ROOT__/public/webapp/js/common.js" type="text/javascript" charset="utf-8"></script>
	<script src="__ROOT__/public/webapp/js/swiper.jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		// 轮播图
		var swiper = new Swiper('.swiper-container', {
			pagination: '.swiper-pagination',
			paginationClickable: true,
			autoplay: 2000,
			loop: true
		});

		window.onscroll = function() {
			var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
			if(scrollTop > 180) {
				$('.nav').addClass('nav_fixed');
				$('.body_son').css('margin-top', '170px');
			} else {
				$('.nav').removeClass('nav_fixed');
				$('.body_son').css('margin-top', '0px');
				
			}
		}

		$('.firstrow_title').bind('click', function() {
			$(this).addClass('current');
			$(this).siblings().removeClass('current');
            if($(this).index()==1){
             $(".rent_content").reList(1,url.qiuzu,"zulin");
                $("#more1").attr("href",'/index.php?g=Wechat&m=Webzhuan&a=zulin#qiuzu');
            }else{
                $(".rent_content").reList(1,url.qiumai,"ershou");
                $("#more1").attr("href",'/index.php?g=Wechat&m=Webzhuan&a=ershou#qiumai');
                }
//			if($(this).index() == 1) {
//				$('.rent_content').css('display', 'initial');
//				$('.buy_content').css('display', 'none');
//			} else if($(this).index() == 2) {
//				$('.rent_content').css('display', 'none');
//				$('.buy_content').css('display', 'initial');
//			}
		})

		$('.secrow_title').bind('click', function() {
			$(this).addClass('current');
			$(this).siblings().removeClass('current');
			console.log($(this).index());
            if($(this).index()==1){
              $(".sec_rent_content").reList(2,url.chuzu,"zulin");
                $("#more2").attr("href",'/index.php?g=Wechat&m=Webzhuan&a=zulin#chuzu');
            }else if($(this).index()==2){
                $(".sec_rent_content").reList(2,url.ershou,"ershou");
                $("#more2").attr("href",'/index.php?g=Wechat&m=Webzhuan&a=ershou#chushou');
                }else{
                    $(".sec_rent_content").reList(2,url.xinfang,"xinfang");
                    $("#more2").attr("href",'/index.php?g=Wechat&m=Webzhuan&a=xinfang#chakan');
                }
//			if($(this).index() == 1) {
//				$('.sec_rent_content').css('display', 'initial');
//				$('.sec_huose_contetent').css('display', 'none');
//				$('.sec_new_content').css('display', 'none');
//			} else if($(this).index() == 2) {
//				$('.sec_rent_content').css('display', 'none');
//				$('.sec_huose_contetent').css('display', 'initial');
//				$('.sec_new_content').css('display', 'none');
//			} else if($(this).index() == 3) {
//				$('.sec_rent_content').css('display', 'none');
//				$('.sec_huose_contetent').css('display', 'none');
//				$('.sec_new_content').css('display', 'initial');
//
//			}
		});
        
$.fn.reList=function(mob,url,add){
    var $self=$(this);
    $.ajax({
        type: "post",
        url: url,
        "contentType": "application/x-www-form-urlencoded; charset=utf-8",
        data:{},
        dataType: "json",
        success: function (data ,textStatus, jqXHR)
        {
//            alert(JSON.stringify(data[0]))
            if(data.length>0){
            var html=$("#mob"+mob).html(),datas={
                data:data,
                root:add,
            };
            var thtml=template(html,datas);
            $self.html(thtml);
            }else{
               $self.html("<div class='nodata'>暂无匹配数据</div>");     
            }
            
        },
        error:function (XMLHttpRequest, textStatus, errorThrown) {      
        }
     });
};
var url={
    qiuzu:"/index.php?g=Wechat&m=Webapp&a=qiuzu",
    qiumai:"/index.php?g=Wechat&m=Webapp&a=qiumai",
    xinfang:"/index.php?g=Wechat&m=Webapp&a=xinfang",
    ershou:"/index.php?g=Wechat&m=Webapp&a=ershou",
    chuzu:"/index.php?g=Wechat&m=Webapp&a=chuzu",
}
 $(".rent_content").reList(1,url.qiuzu,"zulin");
// $(".rent_content").reList(1,url.qiumai);
$(".sec_rent_content").reList(2,url.chuzu,"zulin");

	

	</script>

</html>